<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@page pageEncoding="UTF-8" %>
<%@page contentType="text/html; charset=UTF-8" language="java"%>
<%@ taglib uri="http://struts.apache.org/tags-html"  prefix="html"%>
<%@ taglib uri="http://struts.apache.org/tags-bean"  prefix="bean"%>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>
<%@ taglib uri="http://displaytag.sf.net" prefix="display" %>
<%@page import="com.kcs.common.utils.commonUtils"%>
<%@page import="com.kcs.common.utils.PropsUtils"%>
<%@page import="com.kcs.common.utils.Constant"%>

<html>
<head>
<title>FX Margin - Import Rate</title>

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.1/jquery.min.js"></script>
<script type="text/javascript" src="jsp/script/jquery/plugin/fancybox/jquery.easing-1.3.pack.js"></script>
<script type="text/javascript" src="jsp/script/jquery/plugin/fancybox/jquery.fancybox-1.3.4.js"></script>
<script type="text/javascript" src="jsp/script/jquery/plugin/fancybox/jquery.fancybox-1.3.4.pack.js"></script>   
<script type="text/javascript" src="jsp/script/jsDatePick.full.1.3.js"></script>   	 	 	
<script type="text/javascript" src="jsp/script/common.js"></script>  
<link rel="stylesheet" type="text/css" href="jsp/script/jquery/plugin/fancybox/jquery.fancybox-1.3.4.css"/>
<link rel="stylesheet" type="text/css" href="jsp/css/table.css"/>
<link rel="stylesheet" type="text/css" href="jsp/css/fxmarginStyle.css"/>
<link rel="stylesheet" type="text/css" href="jsp/css/jsDatePick_ltr.css" />


<script type="text/javascript">

function importFile(){
	var tranCode = document.getElementsByName("tranCode")[0];
	tranCode.value = "importRate";
	loading();
	document.forms[0].submit();    
}	

</script>

</head>
<body>
	<!-- HEADER MENU -->
	<%@ include	file="include/headerMenu.jsp"%> 

	<center>
		<div id="divImportRate" style="width:95%;">
			<html:form action="/ImportRateAction.do" style="margin:0px;"  enctype="multipart/form-data">
				<input type="hidden" name="tranCode" value=""/>
				
				<table class="MarginHeader" width="100%">
					<tr>
						<td align="left">
							Import Rate
						</td>
					</tr>
				</table>
				<div class="CriteriaBox">
				<table width="100%" class="MarginCriteria">  
					<tr>
						<td width="50%" align="right">Rate :</td>    
						<td width="50%" align="left" ><html:file property="file" size="30"></html:file>&nbsp;</td>
					</tr>					
				</table>
				
				<table width="100%" >
					<tr>
						<td width="100%" align="center"><input type="button" class="button" value="Import" onclick="importFile();"/></td>
						
					</tr>
					<tr>
						<td>
							<center>
								<%
									Object err = request.getAttribute(Constant.ERR_ATTR);
								
									if(err != null){
										%>
											<script type="text/javascript">
												alert("<%=err%>");
											</script>
										<%
										
									}
								%>
		
							</center>
						</td>
					</tr>
				</table>
			</div>					
			    
				<%@ include	file="include/footer.jsp"%> 
				<%@ include	file="include/message.jsp"%> 
				
			</html:form>
		</div>
	</center>
</body>
</html>